#ifndef MAIN_MENU_HPP_INCLUDED
#define MAIN_MENU_HPP_INCLUDED

#include <SFML/Graphics.hpp>

#include "../game_state.hpp"
#include "../singleton.hpp"

class MainMenu: public GameState, public Singleton<MainMenu> {
	friend class Singleton<MainMenu>;
	public:
		void init(Engine *engine);
		void cleanup();

		void pause();
		void resume();

		void processEvent(Engine *engine, PlayerEvent& event);
		void update(Engine *engine);
		void draw(Engine *engine);

		std::vector<sf::String> menuItems;
		unsigned int selectedMenuItem;

		sf::Sprite background;
		sf::Music themeMusic;
	protected:
		MainMenu();
		~MainMenu();
};

#endif // MAIN_MENU_HPP_INCLUDED
